<?php

include_once '../Model/DAL/KQXS.php';

class kqxsController {

    private $kqxs;

    function __construct() {
        $this->kqxs = new KQXS();
    }

    // SLIDES MAIN
    function slidesMain() {
        $resultB = $this->kqxs->GetResultBbyDateTimeNow();
        $resultN = $this->kqxs->GetResultNbyDateTimeNow();
        $resultT = $this->kqxs->GetResultTbyDateTimeNow();
        $combine = array_merge_recursive($resultN, $resultT);
        include_once 'templates/slides/tmp-slides.php';
    }

    // TINH XO SO THEO NGAY
    function getTinhXS() {
        $result = $this->kqxs->getTinhXS();
        include_once 'templates/kqxs/ct-tinh-xs.php';
    }

    // KET QUA XO SO CHO CAC MIEN
    function getKQXS() {
        $result = $this->kqxs->getKQXS();
        include_once 'templates/kqxs/ct-kqxs.php';
    }

}
